package com.ssm.service;

import com.ssm.domain.Permission;
import com.ssm.domain.Role;
import java.util.List;

/**
 * 角色业务接口
 */
public interface IRoleService {

    public List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    void deleteRole(String id) throws Exception;

    Role findById(String roleId) throws Exception;

    void addPermissionToRole(String roleId, String[] permissionIds) throws Exception;

    List<Permission> findOtherPermissions(String roleId) throws Exception;
}
